#ifndef __MOR_TOOL_H__
#define __MOR_TOOL_H__


// structure element fot morphology

#define ElLup	4
#define ElUp	8
#define ElRup	16

#define ElLeft	2
#define ElCentr	1
#define ElRight	32

#define ElLdown 256
#define ElDown	128
#define ElRdown 64

#define El8	(ElLup|ElUp|ElRup|ElLeft|ElCentr|ElRight|ElLdown|ElDown|ElRdown)
#define El4	(ElUp|ElLeft|ElCentr|ElRight|ElDown)


void Dilatation(Raster2DAbstract *Obr, uint16_t typ /*AlineProc:PAbstractLineProc*/);
void Erosion(Raster2DAbstract *Obr, uint16_t typ /*AlineProc:PAbstractLineProc*/);


#endif
